package com.qk.management.util;

/**
 * @author 16778
 * @date 2025/10/14 18:36
 * @description
 */
public class CurrentUserContextHolders {
    private static final ThreadLocal<Integer> CURRENTUSERID = new ThreadLocal<>();

    private CurrentUserContextHolders() {
    }

    public static void setCurrentUserId(Integer userId) {
        CURRENTUSERID.set(userId);
    }

    public static Integer getCurrentUserId() {
        return CURRENTUSERID.get();
    }

    public static void remove() {
        CURRENTUSERID.remove();
    }
}
